<template>
    <ul class="todo-main">
       <item v-for="todo in todos" :key="todo.id" :todo="todo"/>
    </ul>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import item from './item.vue'
export default defineComponent({
  name: "HelloWorld",
  components:{
    item
  },
  props:['todos']
});
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less">
.todo-main{
    margin-left: 0px;
    border:1px solid #ddd;
    border-radius: 2px;
    padding: 0px;

}
</style>
